package entities;

import services.impl.StandardOPs;
import java.util.List;
import java.util.LinkedList;
import java.util.ArrayList;
import java.util.Arrays;
import java.time.LocalDate;
import java.io.Serializable;
import java.lang.reflect.Method;

public class StudentInGroup implements Serializable {
	
	/* all primary attributes */
	private String GroupId;
	private String StudentId;
	
	/* all references */
	private List<Student> GroupHasStudent = new LinkedList<Student>(); 
	private List<Group> StudentInGroup = new LinkedList<Group>(); 
	
	/* all get and set functions */
	public String getGroupId() {
		return GroupId;
	}	
	
	public void setGroupId(String groupid) {
		this.GroupId = groupid;
	}
	public String getStudentId() {
		return StudentId;
	}	
	
	public void setStudentId(String studentid) {
		this.StudentId = studentid;
	}
	
	/* all functions for reference*/
	public List<Student> getGroupHasStudent() {
		return GroupHasStudent;
	}	
	
	public void addGroupHasStudent(Student student) {
		this.GroupHasStudent.add(student);
	}
	
	public void deleteGroupHasStudent(Student student) {
		this.GroupHasStudent.remove(student);
	}
	public List<Group> getStudentInGroup() {
		return StudentInGroup;
	}	
	
	public void addStudentInGroup(Group group) {
		this.StudentInGroup.add(group);
	}
	
	public void deleteStudentInGroup(Group group) {
		this.StudentInGroup.remove(group);
	}
	


}
